<%@ page import="com.autoMobile.bean.Vehicle" %>
<%@ page import="java.util.List" %>
<%@ page import="com.autoMobile.dao.VehicleDao" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>企业车辆管理系统</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/css/styles.css">
    <style>
        /* 主页面布局样式 */
        .page-container {
            display: flex;
            flex-direction: column;
            min-height: 100vh;
            padding: 0 10px;
        }
        .content-wrapper {
            display: flex;
            flex: 1;
            margin-top: 10px;
            height: calc(100vh - 100px);
        }

        .main-content {
            flex: 1;
            padding: 20px;
            background-color: #fff;
            border-radius: 4px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            overflow-y: auto; /* 添加滚动条 */
        }

        /* iframe样式 */
        .header-frame {
            width: 100%;
            height: 60px;
            border: none;
            margin-bottom: 20px;
        }

        .sidebar-frame {
            width: 200px;
            border: none;
            margin-right: 20px;
            /* height: 100%; */
        }

        /* 表单样式 */
        .form-container {
            max-width: 800px;
            margin: 0 auto;
        }

        .form-group {
            margin-bottom: 20px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .form-control {
            width: 100%;
            padding: 8px;
            border: 1px solid #ddd;
            border-radius: 4px;
        }

        .btn {
            padding: 8px 16px;
            border: none;
            border-radius: 4px;
            background-color: #1890ff;
            color: white;
            cursor: pointer;
        }

        /* 列表样式 */
        .list-container {
            width: 100%;
            border-collapse: collapse;
        }

        .list-container th,
        .list-container td {
            padding: 12px;
            border: 1px solid #eee;
            text-align: left;
        }

        .list-container th {
            background-color: #f5f5f5;
        }
    </style>
</head>
<body>
<%
   // List<Vehicle> list = VehicleDao.getAllVehicles();
    // session.setAttribute("VehList",list);
%>
    <div class="page-container">
        <iframe src="header.jsp" class="header-frame"></iframe>
        <div class="content-wrapper">
            <div  class="sidebar-frame">
                <jsp:include page="sidebar-admin.jsp"></jsp:include>
            </div>
            <div  class="sidebar-frame">
                <jsp:include page="sidebar.jsp"></jsp:include>
            </div>
            <main class="main-content">
                <iframe name="mainContent" style="width: 100%; height: 100%; border: none;" src="<%=request.getContextPath()%>/IndexServlet"></iframe>
            </main>
        </div>
    </div>
</body>
</html>